var app=angular.module("app",[])
app.controller("ctrl",function ($scope,$http) {
    $scope.ajaxDemo=function(){
        $http({
            url:'/demo/users/ajax',
            data:{input:1},
            method:'post'
        }).then(function (res) {
            console.log(res.data)
            alert(res.data.success)
        },function (error) {
            console.log(error)
        })
    }
})